import { request } from "../utils/axios";

/**
 * 获取频道列
 */
export function getChannels() {
    return request("/channels", "get");
}

/**
 * 发布文章
 */
export function postArticles(draft,data) {
    return request(`mp/articles?draft=${draft}`, "post",data);
}

/**
 * 编辑文章
 */
export function putArticles(target,draft,data) {
    return request(`mp/articles/${target}?draft=${draft}`, "put",data);
}
